package com.ljf.finance.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 账户报表账户关联对象  finance_rel_account_report_detail
 *
 * @author LJF
 * @since 2024-12-07
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("账户报表账户关联")
@EqualsAndHashCode(callSuper = true)
@TableName("finance_rel_account_report_detail")
public class FinanceRelAccountReportDetail extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link FinanceRelAccountReportDetail#COL_ID}
	 */
	@TableId(value="id", type= IdType.AUTO)
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: char(8)
	 * 注释: 明细编码
	 * {@link FinanceRelAccountReportDetail#COL_DETAIL_CODE}
	 */
	@TableField("detail_code")
	@JsonProperty("detailCode")
	@ApiModelProperty(value = "明细编码")
	private String detailCode;

	/**
	 * Java类型: String
	 * 数据库类型: char(6)
	 * 注释: 账户编码
	 * {@link FinanceRelAccountReportDetail#COL_ACCOUNT_CODE}
	 */
	@TableField("account_code")
	@JsonProperty("accountCode")
	@ApiModelProperty(value = "账户编码")
	private String accountCode;

	/**
	 * Java类型: Integer
	 * 数据库类型: smallint unsigned
	 * 注释: 排序
	 * {@link FinanceRelAccountReportDetail#COL_SORT}
	 */
	@TableField("sort")
	@JsonProperty("sort")
	@ApiModelProperty(value = "排序")
	private Integer sort;


	/**
	 * ID
	 * {@link FinanceRelAccountReportDetail#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 明细编码
	 * {@link FinanceRelAccountReportDetail#detailCode}
	 */
	public static final String COL_DETAIL_CODE = "detail_code";
	/**
	 * 账户编码
	 * {@link FinanceRelAccountReportDetail#accountCode}
	 */
	public static final String COL_ACCOUNT_CODE = "account_code";
	/**
	 * 排序
	 * {@link FinanceRelAccountReportDetail#sort}
	 */
	public static final String COL_SORT = "sort";

}
